<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\widgets\FileInput;

/* @var $this yii\web\View */
/* @var $model common\models\Qualification */
$this->title = '上传图片';
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="upload-form">

    <?php $form = ActiveForm::begin([
        'options' => ['enctype' => 'multipart/form-data'],
    ]); ?>

    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title ">附件批量上传</h3>
        </div>
        <div class="panel-body" id="qualificationBody">
            <div class="row">
                <div class="col-xs-10" style="margin-left: 140px;">
                    <?= FileInput::widget(['name' => 'down_url[]',
                        'options' => [
                            'multiple' => true,
                        ],
                        'pluginOptions' => [
                            'uploadUrl' => '/',
                            'uploadAsync' => false,
                            'showPreview' => true,
                            'showCaption' => true,
                            'showRemove' => true,
                            'showUpload' => false,
                            'fileActionSettings' => [
                                'showZoom' => true,
                                'showUpload' => false,
                                'showRemove' => true,
                            ],
                        ]

                    ]) ?>
                </div>
            </div>
        </div>
    </div>

    <div class="form-group">
        <?= Html::submitButton('保存附件', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>